package com.clouddot.baipai.contract;


import com.clouddot.baipai.http.entity.response.getClassHonorResponse;
import com.clouddot.baipai.http.entity.response.getClassInfoByIdResponse;
import com.clouddot.baipai.http.entity.response.getClassInfoListResponse;
import com.clouddot.baipai.http.entity.response.getClassMemberResponse;

import org.wxy.sdk.base.IBaseModel;
import org.wxy.sdk.base.IBasePresenter;
import org.wxy.sdk.base.IBaseView;

import rx.Observable;

/**
 * Created by wxy on 2018/05/27.
 *
 * @author wxy
 */
public interface IClassFragmentContract {

    interface IPresenter extends IBasePresenter {
        void getClassInfoList(int type, String TaskType, String ClassId, int pageindex, int pagesize);

        void getClassHonorList(String ClassId, int pageindex, int pagesize);

        void getClassMemberList(String ClassId, int pageindex, int pagesize);

        void getClassInfoById(String id);

    }

    interface IModel extends IBaseModel {
        Observable<getClassInfoListResponse> getClassInfoList(String acttype, String TaskType, String ClassId, int pageindex, int pagesize);

        Observable<getClassInfoByIdResponse> getClassInfoById(String acttype, String id);

        Observable<getClassHonorResponse> getClassHonorList(String acttype, String ClassId, int pageindex, int pagesize);

        Observable<getClassMemberResponse> getClassMemberList(String acttype, String ClassId, int pageindex, int pagesize);
    }

    interface IView extends IBaseView {
        void success(int flag, Object object);

        void fail(int flag, String errMsg);


    }
}
